﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

public partial class WebUserControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            IDataAdapter adp = new SqlDataAdapter("select * from ProductList", "Data Source=ODYSSEY\\SQLEXPRESS;Initial Catalog=EBBusinessProcessAutomation;User ID=sa;Password=bmjo");
            DataSet ds = new DataSet();
            adp.Fill(ds);
            mccbMasterItems.DataSource = ds.Tables[0];
            mccbMasterItems.DataBind();
            mccbMasterItems.ItemsCSS.Insert(0, "Select");
            //mccbSubItem.DataSource = ds.Tables[0];
            //mccbSubItem.DataBind();
        }
    }
    #region Web Form Designer generated code
    override protected void OnInit(EventArgs e)
    {
        //
        // CODEGEN: This call is required by the ASP.NET Web Form Designer.
        //
        InitializeComponent();
        base.OnInit(e);
    }

    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
        this.mccbMasterItems.RowSelectionChanged += new ExtendedWebComboBox.MultiColumnComboBox.OnIntellisenseRowSelect(this.mccbMasterItems_RowSelectionChanged);

    }
    #endregion
    protected void mccbMasterItems_RowSelectionChanged(LinkButton sender, ExtendedWebComboBox.SelectedRowEventArgs args)
    {

    }
}
